(function() {
	$( "#tabs" ).tabs({
		cache: true,
		spinner: '载入中...'
	});
	
	window.selectedItems = [];
	
	$( "#license-overflow" ).dialog({
		autoOpen: false,
		modal: true
	});
	window.common = {};
	window.common.isOverflow = function(jqXHR)
	{
		if (jqXHR)
		{
			var msg = jqXHR.getResponseHeader('msg');
			if ('overflow' == msg)
			{
				$( "#license-overflow" ).dialog( "open" );
				return true;
			}
		}
		return false;
	};
})();
